
const store = {
    state: {
		wagesResult: null,
		yearResult: null,
		loanResult: null,
		feeResult: null,
		rentResult: null,
		usedResult: null,
		engageResult: null,
		godResult: null,
		interestResult: null,
		gongzi: '',
		shebao: '',
		gongjijin: '',
		child: '',
		childAll: null,
		ischild: false,
		education: '',
		iseducation: false,
		old: '',
		isold: false,
		loan: '',
		isloan: false,
		rent: '',
		isrent: false,
		medication: '',
		ismedication: false,
    },
    getters: {
    },
    mutations: {
		setGongzi(state, gongzi) {
			state.gongzi = gongzi
		},
		setShebao(state, shebao) {
			state.shebao = shebao
		},
		setGongjijin(state, gongjijin){
			state.gongjijin = gongjijin
		},
		setChild(state, child){
			state.child = child.moy
			state.childAll = child
		},
		setEducation(state, education){
			state.education = education
		},
		setOld(state, old){
			state.old = old.moy
			state.oldAll = old
		},
		setLoan(state, loan){
			state.loan = loan
		},
		setRent(state, rent){
			state.rent = rent
		},
		setMedication(state, medication){
			state.medication = medication
		},
		setWagesResult(state, result){
			state.wagesResult = result
		},
		setYearResult(state, result){
			state.yearResult = result
		},
		setLoanResult(state, result){
			state.loanResult = result
		},
		setFeeResult(state, result){
			state.feeResult = result
		},
		setRentResult(state, result){
			state.rentResult = result
		},
		setUsedResult(state, result){
			state.usedResult = result
		},
		setEngageResult(state, result){
			state.engageResult = result
		},
		setGodResult(state, result){
			state.godResult = result
		},
		setInterestResult(state, result){
			state.interestResult = result
		},
		
		
		
    },
    actions: {
    }
}

export default store
